import Layout from '@/layout'

const orderRouter = {
    path: '/order',
    component: Layout,
    redirect: '/order/rechargeOrder',
    name: 'Order',
    meta: {
        title: 'order',
        icon: 'table',
        roles: ['other'] // you can set roles in root nav
    },
    children: [
        {
            path: 'rechargeorder',
            component: () => import('@/views/order/rechargeOrder'),
            name: 'RechargeOrder',
            meta: {
                title: 'rechargeorder',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'blindboxorder',
            component: () => import('@/views/order/blindBoxOrder'),
            name: 'BlindBoxOrder',
            meta: {
                title: 'blindboxorder',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'blindboxorderinfo',
            component: () => import('@/views/order/blindBoxOrderInfo'),
            name: 'BlindBoxOrderInfo',
            hidden: true,
            meta: {
                title: 'blindboxorderinfo',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
    ]
}
export default orderRouter
